package com.jy.rhin.model.body.xinshenger;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import lombok.Data;

@Data
public class ZhuanZhenJY {

    //转诊标志
    @XPath(model = "code", codePath = "/entry/observation/code[@code='DE06.00.174.00'][@codeSystem='2.16.156.10011.2.2.1']",
            path = "/value/@value", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE06_00_174_00))
    String zhuanZhenBZ;

    //转诊原因
    @XPath(path = "/entry/observation/entryRelationship/act/text", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE06_00_177_00, nullable = true))
    String zhuanZhenYY;

    //转入科室
    @XPath(path = "/entry/observation/entryRelationship/act/performer/assignedEntity/representedOrganization/name",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE08_10_026_00 , nullable = true))
    String zhuanRuKS;

    //转入机构
    @XPath(path = "/entry/observation/entryRelationship/act/performer/assignedEntity/representedOrganization/asOrganizationPartOf/wholeOrganization/name",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE08_10_013_00, nullable = true))
    String zhuanRuJG;


}
